import { post, get } from './index'
// h5支付方式列表
export function paymentListH5(params) {
  return post('/cashier/checkout/paymentListH5', params).then(res => res);
}
// h5获取可用银行列表
export function enableBankListH5(params) {
  return get('/cashier/quick/enableBankListH5', params).then(res => res);
}

// h5查询订单接口
export function getOrderStatus(params) {
  return post('/cashier/queryOrder/queryOrderState', params).then(res => res);
}
// 订单有效期时间
export function queryOrderExpireTime(params) {
  return post('/cashier/queryOrder/queryOrderExpireTime', params).then(res => res);
}
// 快捷初始化数据
export function quickPayment(params) {
  return post('/cashier/quick/initH5', params).then(res => res);
}
// 根据手机号查协议和银行信息
export function agreementAndBankInfo(params) {
  return get('/cashier/quick/agreementAndBankInfo', params).then(res => res);
}
// 根据卡号获取卡信息接口
export function getCardInfo(params) {
  return get('/cashier/quick/cardInfo', params).then(res => res);
}
// 获取验证码接口 H5
export function smsCodeH5(params) {
  return post('/cashier/quick/smsCodeH5', params).then(res => res);
}
// 确认支付接口 H5
export function confirmH5(params) {
  return post('/cashier/quick/confirmH5', params).then(res => res);
}
// logoImg H5
export function getLogoImage(params) {
  return get('/cashier/checkout/image', params).then(res => res);
}
// 获取支持卡列表
export function getOneKeySignCardTypeList(params) {
  return get('/cashier/quick/oneKeySignCardTypeList', params).then(res => res);
}
// H5一键签约下单
export function getFormOneKeySign(params) {
  return post('/cashier/quick/oneKeySign', params).then(res => res);
}
// H5前台通知后调用后端同步
export function getOneKeySignFrontNotify(params) {
  return post('/cashier/quick/oneKeySignFrontNotify', params).then(res => res);
}
// H5查询签约协议信息接口
export function getQueryAgreementId(params) {
  return post('/cashier/quick/queryAgreementId', params).then(res => res);
}
// 保存订单参数
export function SetParamTmp(params) {
  return post('/cashier/quick/paramTmp', params).then(res => res);
}
// 获取订单参数
export function GetParamTmp(params) {
  return post('/cashier/quick/paramTmpGet', params).then(res => res);
}
// 解密接口
export function decodeParams(params) {
  return post('/cashier/quick/decryptParam', params).then(res => res);
}

// 保存订单参数
export function SetParamTmpPro(params) {
  return post('/cashier/quick/paramTmpPro', params).then(res => res);
}
// 保存订单参数
export function GetParamTmpGetPro(params) {
  return post('/cashier/quick/paramTmpGetPro', params).then(res => res);
}
// 快捷初始化数据
export function weChatInit(params) {
  return post('/cashier/wechatAliUnionH5/link', params).then(res => res);
}